<?php

/**
 * Description of AclService
 *
 * @author gun
 */
class Admin_Model_AclService extends Admin_Model_BaseService {
    protected $daoClass = 'Admin_Model_DbTable_Acl';
    
    public function findRow($groupID) {
        $data = $this->getDao()->findRow($groupID);
        
        return $data;
    }
    
    public function findAll($where = array(), $options = array()) {
        $data = $this->getDao()->findAll($where, $options);                
        
        return $data;
    }
    
    public function countRows($where = '') {
        return $this->getDao()->countRows($where);
    }
    
    public function doUpdate($data, $where) {        
        return $this->getDao()->doUpdate($data, $where);
    }
    
    public function doSave($data = array()) {
        return $this->getDao()->doSave($data);
    }
    
    public function doDelete($where = '') {
        return $this->getDao()->doDelete($where);
    }
    
    public function doDeleteByMenuID($where = '') {
        return $this->getDao()->doDeleteByMenuID($where);
    }
    
    public function updateAcl($data, $where) {        
        return $this->getDao()->updateAcl($data, $where);
    }
}

?>
